package com.qt.thread;

/**
 * @Author zsf
 * @Date 2023/10/2 17:56
 * @Version 1.0
 */
public class MyThread extends Thread {

    public MyThread() {
    }

    public MyThread(String name) {
        super(name);
    }

    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println(getName() + "哈哈哈哈哈" + i);
            //Thread.yield();
        }
    }
}
